#!/bin/bash
#source src/conf/config.conf

selection=
until [ "$selection" = "0"]; do
 echo "					  	"  
 echo "  ______  _______                                "
 echo " |  _ \ \/ / ____|  ___  ___ _ ____   _____ _ __ "
 echo " | |_) \  /|  _|   / __|/ _ \ '__\ \ / / _ \ '__|"
 echo " |  __//  \| |___  \__ \  __/ |   \ V /  __/ |   "
 echo " |_|  /_/\_\_____| |___/\___|_|    \_/ \___|_|   "
 echo "                                                "
 echo " ==================== " 
     echo "     PROGRAM MENU"
 echo " ==================== " 
 echo " "   
echo "1 - Install PXE Server and Create structure"
echo "2 - Install Clonezilla  onto PXE"
echo "3 - Install debian onto PXE"
echo "4 - Install ubuntu onto PXE"
echo "5 - Install openbsd onto PXE"
echo "6 - Install NET BSD onto PXE"
echo "7 - Install DSL - Damn Small Linux onto PXE"
echo "8 - Install XEN Server onto PXE"
echo "9 - Install ESXi onto PXE"
echo "10 - Install Experience Boot CD onto PXE"
echo "11 - Install ProxMox VE onto PXE"
echo "12 - Install Partition Magic onto PXE"
echo "13 - Install CentOS onto PXE"
echo "14 - Install IPCOP Firewall onto PXE"
echo "15 - Install Fedora onto PXE"
echo "16 - Install PFSense onto PXE"
echo "17 - Install FreeNAS onto PXE"
echo "18 - Port Pxe to Windows"
echo "19 - Mirror Debian"
echo "20 - Uninstall PXE Server"
 

     echo ""
     echo "0 - Exit program"
     echo ""
     echo -n "Enter Selection:"
     read selection
     echo ""
     case $selection in
         1 ) echo "This install PXE Server"
		sh src/install.sh
 		echo "This create PXE structure"
      		sh src/pxes.sh ;;
         2 ) sh src/clonezilla.sh ;;
  3 ) echo "This installs Debian onto PXE"
		sh src/debian.sh ;;
 4 ) echo "This installs Ubuntu onto PXE"
		sh src/ubuntu.sh ;;
 5 ) echo "This installs openbsd onto PXE"
pause
		
     		sh src/open.sh 
		;;
 6 ) 
     		sh src/netbsd.sh ;;
 7 ) sh src/dsl.sh
     		;;
 8 ) sh src/xenserver.sh
      ;;

 9 )  sh src/esx.sh
      ;;

10 ) sh src/experience.wget;;
 11 ) 
sh src/proxmox.sh
;;
 12 ) sh src/pmagic.sh
;;
 13 )  sh src/centos.sh
;;
14 )  sh src/ipcop.sh
;;
15 )  sh src/fedora.sh
;;
16 )  sh src/pfsense.sh
;;
16 )  sh src/freenas.sh
;;
18 ) sh src/port.sh;;

 	20 ) echo "Uninstall PXE Server"
            sh src/uninstall.sh
		sleep 2
		pause
		;;


         0 ) exit;;
         * ) echo "Please enter 1 to 20 or 0 to exit"
     esac
done
